<div class="teachers view">
<h2><?php  __('Teacher');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $teacher['Teacher']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Account'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($teacher['Account']['id'], array('controller' => 'accounts', 'action' => 'view', $teacher['Account']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Manager'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($teacher['Manager']['id'], array('controller' => 'managers', 'action' => 'view', $teacher['Manager']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Profile'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($teacher['Profile']['id'], array('controller' => 'profiles', 'action' => 'view', $teacher['Profile']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Teacher', true), array('action' => 'edit', $teacher['Teacher']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Teacher', true), array('action' => 'delete', $teacher['Teacher']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $teacher['Teacher']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Teachers', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Teacher', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Accounts', true), array('controller' => 'accounts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Account', true), array('controller' => 'accounts', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Managers', true), array('controller' => 'managers', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Manager', true), array('controller' => 'managers', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Profiles', true), array('controller' => 'profiles', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Profile', true), array('controller' => 'profiles', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Testees', true), array('controller' => 'testees', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Testee', true), array('controller' => 'testees', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Tests', true), array('controller' => 'tests', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Test', true), array('controller' => 'tests', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Testees');?></h3>
	<?php if (!empty($teacher['Testee'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Testeeid'); ?></th>
		<th><?php __('Password'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Teacher Id'); ?></th>
		<th><?php __('Test Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($teacher['Testee'] as $testee):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $testee['id'];?></td>
			<td><?php echo $testee['testeeid'];?></td>
			<td><?php echo $testee['password'];?></td>
			<td><?php echo $testee['name'];?></td>
			<td><?php echo $testee['teacher_id'];?></td>
			<td><?php echo $testee['test_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'testees', 'action' => 'view', $testee['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'testees', 'action' => 'edit', $testee['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'testees', 'action' => 'delete', $testee['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $testee['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Testee', true), array('controller' => 'testees', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Tests');?></h3>
	<?php if (!empty($teacher['Test'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Title'); ?></th>
		<th><?php __('Subtitle'); ?></th>
		<th><?php __('Start Date'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Test Time'); ?></th>
		<th><?php __('Test Type'); ?></th>
		<th><?php __('Is Tested'); ?></th>
		<th><?php __('Created Date'); ?></th>
		<th><?php __('Updated Date'); ?></th>
		<th><?php __('Teacher Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($teacher['Test'] as $test):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $test['id'];?></td>
			<td><?php echo $test['title'];?></td>
			<td><?php echo $test['subtitle'];?></td>
			<td><?php echo $test['start_date'];?></td>
			<td><?php echo $test['end_date'];?></td>
			<td><?php echo $test['test_time'];?></td>
			<td><?php echo $test['test_type'];?></td>
			<td><?php echo $test['is_tested'];?></td>
			<td><?php echo $test['created_date'];?></td>
			<td><?php echo $test['updated_date'];?></td>
			<td><?php echo $test['teacher_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'tests', 'action' => 'view', $test['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'tests', 'action' => 'edit', $test['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'tests', 'action' => 'delete', $test['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $test['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Test', true), array('controller' => 'tests', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
